package com.test.jicheng;

public class MyCar extends Car {

    @Override
    void go() {
        System.out.println("my car go");
    }

    //子类不能继承private方法
    @Override
    public void run() {
        System.out.println(" my car run");
    }

    public static void main(String[] args) {
        Car myCar = new MyCar();
        myCar.go();
        myCar.run();
    }
}
